
.cm-orange {
    color: #FFAA00;
}
.cm-gray {
    color: #999999;
    font-weight: 500;
}
.cm-card {
    padding: 12px;
    background: #28282E;
    border-radius: 8px;
}

.cm-account-form {

    .cm-vant-cell {
        background: #4D4D4D;
        border-radius: 20px;
        padding: 10px 20px;
        margin-top: 20px;

        &::after {
            transform: scaleY(0);
        }

        .van-field__left-icon {
            margin-right: 20px;
        }

        .van-icon__image {
            width: 20px;
            height: 20px;
        }

        .van-field__control {
            font-size: 16px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            line-height: 16px;
            -webkit-text-fill-color: #FFFFFF;

            &::placeholder {
                color: #999999;
                -webkit-text-fill-color: #999999;
            }
        }

        &__label {
            font-size: 16px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            width: 81px;
            margin-right: 0;
        }
    }

    .cm-vant-checkbox {
        display: flex;
        justify-content: flex-end;
        padding-top: 16px;

        .van-checkbox__label {
            font-family: PingFang SC;
            font-weight: 500;
            font-size: 14px;
            color: #CCCCCC;
            line-height: 14px;
        }

        .cm-vant-checkbox__icon {
            width: 16px;
            height: 16px;
            display: block;
        }
    }

    .cm-cell {
        background: #4D4D4D;
        border-radius: 20px;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;

        &__label {}

        &-text {
            width: 100px;
            padding-left: 20px;
            font-size: 16px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            line-height: 16px;
        }

        &-icon {
            display: block;
            width: 20px;
            height: 20px;
            margin: 0 20px;
        }

        &__value {
            flex: 1;
        }

        &-input {
            width: 100%;
            font-size: 16px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            line-height: 16px;
            display: block;
            -webkit-text-fill-color: #FFFFFF;

            &::placeholder {
                color: #999999;
                -webkit-text-fill-color: #999999;
            }
        }

        &__control {}

        &-btn {
            display: block;
            width: 18px;
            height: 18px;
            margin: 0 20px;
        }
    }
}

.cm-public-footer {
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #666666;
    line-height: 18px;
    text-align: center; 
}

.cm-software-footer {
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #666666;
    line-height: 18px;
    text-align: center;
    padding-bottom: 5px;
}

.cm-company-footer {
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #666666;
    line-height: 18px;
    text-align: center;
    padding-bottom: 12px;
}

.cm-cart-clear {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 12px 0 0;

    &__icon {
        display: block;
        width: 14px;
        height: 14px;
    }
    &__text {
        font-family: PingFang SC;
        font-weight: 500;
        font-size: 12px;
        color: #999999;
        line-height: 12px;
        padding-left: 4px;
    }
}

.cm-cart-cell {
    display: flex;
    padding-top: 20px;

    &.confirm {
        padding: 12px 0;
        border-top: 1px solid #383840;
    }

    &:first-child {
        border-top: 0;
    }

    &__cover {
        width: 60px;
        height: 60px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        border-radius: 4px;
    }
    &__main {
        flex: 1;
        padding-left: 11px;
    }
    &__title {
        margin-top: -2px;
        font-size: 0;
    }
    &__desc {
        font-size: 16px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFFFFF;
        line-height: 20px;
        display: inline;
        margin-left: 6px;
        min-height: 15px;
    }
    &__detail {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #999999;
        line-height: 15px;
        min-height: 15px;
    }
    &__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    &__money {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFCC66;
        line-height: 23px;
    }
}

.cm-order-header {
    padding: 12px;
    border-bottom: 1px solid #383840;

    &-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &-left {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: bold;
        line-height: 18px;
    }
    &__label {
        color: #FFFFFF;
    }
    &__value {
        // color: #FFAA00;
        padding-right: 14px;
        position: relative;

        &.into:after {
            content: '';
            width: 6px;
            height: 100%;
            position: absolute;
            top: 0;
            right: 0;
            background-image: url('@/assets/svg/common/v_triangle_right_white.svg');
            background-repeat: no-repeat;
            background-size: 100% auto;
            background-position: center center;

        }
    }
    &-right {

    }
    &__tag {
        border-radius: 4px;
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 14px;

        &.select {
            padding: 6px 21px 6px 10px;
            background: #49494D;
            border-radius: 4px;
            position: relative;

            &:after {
                content: '';
                width: 11px;
                height: 100%;
                position: absolute;
                top: 0;
                right: 5px;
                background-image: url('@/assets/svg/common/v_triangle_bottom_white.svg');
                background-repeat: no-repeat;
                background-size: 100% auto;
                background-position: center center;
            }
        }
    }
    &__lighthigh {
        color: #FFFFFF;
    }
    &__text {
        font-size: 13px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 13px;
    }

    &-panel {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
    }

    &__remark {
        font-size: 13px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 19px;
        max-width: 200px;
    }

    &__edit {
        width: 20px;
        height: 20px;
        background-image: url('@/assets/svg/common/v_edit_white.svg');
        background-size: 100% 100%;
    }
}

.cm-order-type-tag {
    border-radius: 2px;
    font-size: 12px;
    font-family: "PingFang SC", sans-serif;
    font-weight: 500;
    line-height: 24px;
    vertical-align: top;
    padding: 2px 8px;
    &.combo {
        background: #343C3D;
        color: #00D5FF;
    }
    &.single {
        background: #343D3A;
        color: #00FFAA;
    }
    &.gift {
        background: #3D3434;
        color: #FF3333;
    }
}

.cm-table-simple {
    padding: 0 7px;
    flex: 1;
    overflow-y: auto;
    &-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        
    }
    
    /* 在屏幕宽度大于或等于 700px 时显示元素 */
    @media (min-width: 700px) {
        &-list{
            gap: 0 26px;
        }
        &-item {
            margin-right: 0 !important;
        }
    }
    &-item {
        margin-bottom: 8px;
        margin-right: 8px;
        width: 88px;
        height: 88px;
        background: #28282E;
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        display: table;
        &:nth-child(3n) {  
            margin-right: 0;  
        }

    }
    &__title {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #FFFFFF;
        line-height: 18px;
        padding-top: 21px;
        text-align: center;
    }
    &__type {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        line-height: 12px;
        padding-top: 15px;

        &.free {
            color: #009900;
        }
        &.book {
            color: #00AACC;
        }
        &.use {
            color: #FFAA00;
        }
        &.nopay {
            color: #FF3333;
        }
    }
    &__center {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #FFFFFF;
        line-height: 18px;
        display: table-cell;
        vertical-align: middle;
    }
}

.v_triangle_right_white {
    padding-right: 14px;
    position: relative;

    &:after {
        content: '';
        width: 6px;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        background-image: url('@/assets/svg/common/v_triangle_right_white.svg');
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-position: center center;
    }
}

.cm-order-group {
    padding-top: 20px;

    &:first-child {
        // padding-top: 10px;
    }

    &-heading {
        padding-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &-title {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFFFFF;
        line-height: 18px;
    }

    &-subtitle {
        font-size: 13px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFAA00;
        line-height: 13px;
    }

    &-listbox {}

    &-list {}

    &-item {
        margin-top: 10px;
        background: #28282E;
        border-radius: 8px;

        &:first-child {
            margin-top: 0;
        }
    }

    &__cover {
        width: 100%;
        height: 120px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        border-radius: 8px 8px 0 0;
        position: relative;
        .cm-product-overlay {
            border-radius: 8px 8px 0 0 !important;
        }
    }

    &__main {
        padding: 0 12px 11px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 80px;
    }

    &__title {
        padding-top: 9px;
        font-size: 0;
    }

    &__desc {
        font-size: 16px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFFFFF;
        line-height: 23px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
    }

    &__foot {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    &__money {
        font-size: 0;
    }

    &__face {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFAA00;
        line-height: 12px;
    }

    &__original {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 12px;
        display: inline-block;
        transform: scale(0.83);
        transform-origin: left;
        vertical-align: -1px;
        margin-left: 5px;
        text-decoration: line-through;
    }
    &__memprice {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 12px;
        // margin-left: 5px;
        display: inline-block;
        transform: scale(0.83);
        
    }

    &__control {
        position: relative;
    }

    .cm-van-badge {
        &.van-badge {
            top:-8px;
            right: 10px;
        }
    }

    &__multiple {
        
        width: 44px;
        height: 22px;
        background: #FFAA00;
        border-radius: 11px;
        font-family: PingFang SC;
        font-weight: bold;
        font-size: 10px;
        color: #212121;
        line-height: 22px;
        text-align: center;
        &.disabled {
            color: #999999;
        }
    }

    &__single {
        height: 28px;
        display: flex;
        align-items: center;
    }

    .cm-product {
        padding: 12px;
        background: #28282E;
        border-radius: 8px;
        margin-top: 10px;
        display: flex;

        &:first-child {
            margin-top: 0;
        }

        &-cover {
            width: 100px;
            height: 100px;
            border-radius: 8px;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
            position: relative;
        }
        &-overlay {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            background: rgba(0,0,0,.6);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;

            &__text {

                background: rgba(0,0,0,.2);
                border: 1px solid #FFFFFF;
                border-radius: 4px;
                padding: 7px;
                font-size: 16px;
                font-family: PingFang SC;
                font-weight: 500;
                color: #FFFFFF;
                line-height: 16px;
            }
        }
        &-info {
            padding-left: 8px;
            flex: 1;
            .cm-order-group__title {
                padding-top: 0;
            }
            .cm-order-group__desc {
                font-size: 14px;
                font-family: PingFang SC;
                font-weight: 500;
                color: #FFFFFF;
                line-height: 20px;
            }
            .cm-order-group__money {
                padding-top: 2px;
            }
        }
        &-control {
            display: flex;
            justify-content: space-between;
            padding-top: 10px;
            &.single {
                justify-content: flex-end;
            }
        }
        &-btn {
            width: 66px;
            padding: 8px 0;
            text-align: center;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            line-height: 14px;
            background: #5C5C66;
            border-radius: 4px;
            
            &.lighthigh {
                color: #FFAA00;
            }
        }

    }
}

.cm-order-footer {
    display: flex;
    justify-content: space-between;
    // padding: 10px 12px 10px 20px;
    border-radius: 20px;
    margin: 0 12px;
    position: relative;
    z-index: 100;
    bottom: 10px;
    background-color: #333333;
    &-car {
        position: relative; 
        padding: 2px 0;
    }
   
    &__icon {
        width:36px;
        height:36px;
        display: block;
    }
    &-info {
        padding-left: 10px;
        flex: 1;
        font-size: 0;
        display: flex;
        // align-items: center;
        .info-price{
            font-family: PingFang SC;
            font-weight: 800;
            font-size: 18px;
            color: #FFFFFF;
            line-height: 40px;
            padding-right: 3px;
        }
        .info-center{
            padding-right: 3px;
            padding-top: 8px;
            .info-center-top{
                font-family: PingFang SC;
                font-weight: 500;
                font-size: 10px;
                color: #FFAA00;
                line-height: 10px;
                padding-bottom: 6px;
            }
            .info-center-bottom{
                font-family: PingFang SC;
                font-weight: 500;
                font-size: 10px;
                color: #999999;
                line-height: 10px;
            }
        }
        .info-right{
            padding-top: 8px;
            font-family: PingFang SC;
            font-weight: 500;
            font-size: 10px;
            color: #FFAA00;
            line-height: 10px;
        }
    }
    &__money {
        display: inline-block;
        padding-top: 2px;
    }
    &__rmb {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #FFAA00;
        line-height: 12px;
    }
    &__num {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #FFAA00;
        line-height: 18px;
    }
    &__quantity {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 12px;
        padding-top: 6px;
    }
    &__control {
        width: 90px;
        .control-btn{
            width: 90px;
            height: 40px;
            background: linear-gradient(0deg, #CCA67A, #FFF4D9);
            border-radius: 20px;
            font-family: PingFang SC;
            font-weight: bold;
            font-size: 16px;
            color: #212121;
            line-height: 40px;
            text-align: center;
        }
    }
}

.popup-order-size {
        padding-left: 20px;

    &__group {
        padding-top: 10px;
    }
    &__heading {
        font-size: 13px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 13px;
        // padding: 2px 0 6px 0;
        padding: 2px 0 12px 0;
    }
    &__list {
        display: flex;
        flex-wrap: wrap;
    }
    &__item {
        margin: 0 8px 10px 0;
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFFFFF;
        line-height: 12px;
        padding: 6px 3px;
        background: #5C5C66;
        border-radius: 4px;
        min-width: 40px;
        text-align: center;
        &.active {
            background: #665F52;
            border-radius: 4px;
            color: #FFBF40;
        }
    }
}

.popup-order-footer {

    &-selected {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #CCCCCC;
        line-height: 16px;
        padding: 5px 12px;
        background: #505059;
    }
    &-panel {
        background: #45454D;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px 10px 12px;
        min-height: 52px;
    }
    &__money {
        display: inline-block;
        font-size: 0;
    }
    &__rmb {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFAA00;
        line-height: 12px;
    }
    &__price {
        font-size: 24px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFAA00;
        line-height: 24px;
    }
    &__control {
        width: 120px;
        display: flex;
        justify-content: flex-end;
    }
}

.cm-van-badge {

    &.van-badge {
        position: absolute; 
        border: 0;
        background: #FF3333;
        border-radius: 10px;
        display: block;
        padding: 3px 5px;
        transform: scale(0.83);
        top:-2px;
        right: -10px;
        font-family: PingFang SC;
        font-weight: 500;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 12px;
        z-index: 10;
    }
}